//
//  YCalendarView.h
//  TestCalendar
//
//  Created by yull on 14/12/2.
//  Copyright (c) 2014年 yull. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "PerMonthView.h"
#import "PlanInfo.h"

@protocol YCalendarViewDelegate <NSObject>

- (void)onClickPreButton;

- (void)onClickNextButton;

- (void)calendarViewChangeHeight:(CGFloat)height;

- (void)didSelectMonth:(NSInteger)month day:(NSInteger)day;

- (void)insertFailed:(NSString *)errorMsg;

@end

@interface YCalendarView : UIView <PerMonthViewDelegate>

@property (nonatomic, strong) UIView *topView;
@property (nonatomic, strong) UIButton *preButton;
@property (nonatomic, strong) UIButton *nextButton;
@property (nonatomic, strong) UILabel *topTitleLabel;

@property (nonatomic, strong) PerMonthView *monthView;

@property (nonatomic, assign) NSInteger currentMonth;
@property (nonatomic, assign) NSInteger currentYear;
@property (nonatomic, assign) NSInteger currentWeekCount;

@property (nonatomic, assign) id <YCalendarViewDelegate> delegate;

@end
